package org.csu.mypetstore.persistence;

import org.csu.mypetstore.domain.CartItem;
import org.csu.mypetstore.domain.Order;
import org.csu.mypetstore.domain.OrderList;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface OrderMapper{

    void insertOrderCart(CartItem cartItem);

    void insertOrder(Order order);

    void updateOrderList(String orderId, String username);

    ArrayList<Order> searchOrder(String username);

    Order searchOrderByorderID(String orderId);

    ArrayList<CartItem> searchOrderCart(String orderId, String username);

    ArrayList<Order> getOrderList();

    void updateOrder(Order order);

    void dateleOrderCart(String orderId);

    void deleteOrder(String orderId);

    void updateDeliver(Order order);
}
